package chatBot.repository;

/**
 * @Author 余俊杰
 * 2024/8/17 15:06
 */

import chatBot.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserRepository extends JpaRepository<User, String> {
    Optional<User> findByOpenId(String openId);

    Optional<User> findByUserId(Long userId);

    Optional<User> findByState(Integer state);

}
